package com.pzb.page.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

/**
 * 公告提示对象 pg_page_item_notice
 * 
 * @author pzb
 * @date 2021-10-09
 */
public class PgPageItemNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** p_page_item表中的id */
    private Long itemId;

    /** 图片地址 */
    private Long pictureId;

    /** 存储文件路径 */
    private String filePath;

    /** 缩略图路径 */
    private String previewPath;

    /** 公告内容 */
    private String content;

    /** 公告内容滚动方式：0为不滚动，1为从右到左，2为从下到上 */
    private Integer scrollMode;

    /** 链接类型：1首页；2商品；3商品分类；4优惠券；5自定义页面；6搜索页 */
    private Integer linkType;

    /** 链接地址 */
    private String linkAddress;

    private String linkGoodsName;

    /** 文字颜色 */
    private String textColor;

    /** 背景颜色 */
    private String backgroundColor;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setPictureId(Long pictureId) 
    {
        this.pictureId = pictureId;
    }

    public Long getPictureId() 
    {
        return pictureId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getPreviewPath() {
        return previewPath;
    }

    public void setPreviewPath(String previewPath) {
        this.previewPath = previewPath;
    }

    public String getContent()
    {
        return content;
    }
    public void setScrollMode(Integer scrollMode) 
    {
        this.scrollMode = scrollMode;
    }

    public Integer getScrollMode() 
    {
        return scrollMode;
    }
    public void setLinkType(Integer linkType) 
    {
        this.linkType = linkType;
    }

    public Integer getLinkType() 
    {
        return linkType;
    }
    public void setLinkAddress(String linkAddress) 
    {
        this.linkAddress = linkAddress;
    }

    public String getLinkAddress() 
    {
        return linkAddress;
    }

    public String getLinkGoodsName() {
        return linkGoodsName;
    }

    public void setLinkGoodsName(String linkGoodsName) {
        this.linkGoodsName = linkGoodsName;
    }

    public void setTextColor(String textColor)
    {
        this.textColor = textColor;
    }

    public String getTextColor() 
    {
        return textColor;
    }
    public void setBackgroundColor(String backgroundColor) 
    {
        this.backgroundColor = backgroundColor;
    }

    public String getBackgroundColor() 
    {
        return backgroundColor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemId", getItemId())
            .append("pictureId", getPictureId())
            .append("content", getContent())
            .append("scrollMode", getScrollMode())
            .append("linkType", getLinkType())
            .append("linkAddress", getLinkAddress())
            .append("textColor", getTextColor())
            .append("backgroundColor", getBackgroundColor())
            .toString();
    }
}
